package com.ruoyi.villagers.service.impl;

import com.ruoyi.villagers.domain.VigHouse;
import com.ruoyi.villagers.mapper.VigReviewMapper;
import com.ruoyi.villagers.service.IVigReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class VigReviewServiceImpl implements IVigReviewService {

    @Autowired
    private VigReviewMapper vigReviewMapper;

    @Override
    public int passReviews(Long[] houseIds) {
        return vigReviewMapper.passReviews(houseIds);
    }

    @Override
    public int failReviews(Long[] houseIds) {
        return vigReviewMapper.failReviews(houseIds);
    }

    @Override
    public List<VigHouse> selectHasReviewList(VigHouse house) {
        return vigReviewMapper.selectHasReviewList(house);
    }
}
